using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_ADDON_INFO_DEF : DefinitionBase
    {

        //private struct ADDON_INFO
        //{
        //    public string name;
        //    public UInt32 Enable;
        //    public UInt32 crc;
        //    public UInt32 unknown;

        //    public override string ToString()
        //    {
        //        if (name != null)
        //            return name + ", " + Enable.ToString() + ", " + crc.ToString() + ", " + unknown.ToString();
        //        return  Enable.ToString() + ", " + crc.ToString() + ", " + unknown.ToString();

        //    }
        //}
        public override bool Process()
        {
            return true; //WHEN YOU NEED IT ONLY
            ResetPosition();
              

            //BROKEN

            //uint realsize = ReadUInt32();

            //System.Collections.Hashtable thash = new System.Collections.Hashtable();
            //int i = 0;
            //while (AvailableBytes > 0)
            //{
            //    ADDON_INFO tADDON_INFO = new ADDON_INFO();
            //    thash[i] = tADDON_INFO;

            //    tADDON_INFO.name = ReadString();
            //    tADDON_INFO.Enable = ReadUInt32();
            //    tADDON_INFO.crc = ReadUInt32();
            //    tADDON_INFO.unknown = ReadUInt32();
            //    i++;
            //}
 

            return Validate();
        }
    }
}
